//
//  FPCommWebView.m
//  FilmParadise
//
//  Created by lanou3g on 15/7/20.
//  Copyright (c) 2015年 DLYgroup. All rights reserved.
//

#import "FPCommWebView.h"

@implementation FPCommWebView
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.webView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 64, kScreenWidth, kScreenHeight - 64)];
        
        [self addSubview:_webView];
        
        
        
    }
    return self;
}
- (void)setUrlstr:(NSString *)str
{
    NSURL *url = [NSURL URLWithString:str];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    [_webView loadRequest:request];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
